package com.qianbao.domain.coinrecord;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class CoinRecordEntity implements Serializable {

    private String coin_record_id;

    @NotNull(message = "用户唯一标识不能为空")
    private String custom_id;

    private String coin_number;

    private String coin_record_tip;

    private String record_create_time;

//    @Min(value)  被注释的元素必须是一个数字，其值必须大于等于指定的最小值
    @Min(1)
    private int page_size;

    @Min(1)
    private int page_no;

    public String getCoin_record_id() {
        return coin_record_id;
    }

    public void setCoin_record_id(String coin_record_id) {
        this.coin_record_id = coin_record_id;
    }

    public String getCustom_id() {
        return custom_id;
    }

    public void setCustom_id(String custom_id) {
        this.custom_id = custom_id;
    }

    public String getCoin_number() {
        return coin_number;
    }

    public void setCoin_number(String coin_number) {
        this.coin_number = coin_number;
    }

    public String getCoin_record_tip() {
        return coin_record_tip;
    }

    public void setCoin_record_tip(String coin_record_tip) {
        this.coin_record_tip = coin_record_tip;
    }

    public String getRecord_create_time() {
        return record_create_time;
    }

    public void setRecord_create_time(String record_create_time) {
        this.record_create_time = record_create_time;
    }

    public int getPage_size() {
        return page_size;
    }

    public void setPage_size(int page_size) {
        this.page_size = page_size;
    }

    public int getPage_no() {
        return page_no;
    }

    public void setPage_no(int page_no) {
        this.page_no = page_no;
    }

    @Override
    public String toString() {
        return "CoinRecordEntity{" +
                "coin_record_id='" + coin_record_id + '\'' +
                ", custom_id='" + custom_id + '\'' +
                ", coin_number='" + coin_number + '\'' +
                ", coin_record_tip='" + coin_record_tip + '\'' +
                ", record_create_time='" + record_create_time + '\'' +
                ", page_size=" + page_size +
                ", page_no=" + page_no +
                '}';
    }
}
